/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.core;

import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

/**
 *
 * @author DCorrea
 */
public abstract class JDialog_AbstractAddAcc extends javax.swing.JDialog {

    private CoreFrame parentframe;

    public JDialog_AbstractAddAcc(CoreFrame parentframe) {
        this.parentframe = parentframe;
        JRadioButton[] RadioButtons = makeRadios();
        JLabel[] labels = makeLabels();
        JTextField[] textFields = makeFields();

        for (int i = 0; i < RadioButtons.length; i++) {
            getContentPane().add(RadioButtons[i]);
        }

        for (int i = 0; i < labels.length; i++) {
            getContentPane().add(labels[i]);
        }

        for (int i = 0; i < textFields.length; i++) {
            getContentPane().add(textFields[i]);
        }


    }
    javax.swing.JRadioButton JRadioButtons[];
    javax.swing.JLabel JLabel[];
    javax.swing.JTextField JTextField[];

    protected abstract JRadioButton[] makeRadios();

    protected abstract JLabel[] makeLabels();

    protected abstract JTextField[] makeFields();
}
